/**
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */

package com.poltman.dscentral.db.exceptions;

import org.springframework.dao.DataAccessException;

/**
 * 
 * @author z.ciok@poltman.com
 * @version $Revision: 1528 $
 * 
 */
public class RepositoryAccessException extends DataAccessException {
	private static final long serialVersionUID = 8519337109955114588L;
	
	String exception;

	public RepositoryAccessException(String exception) {
		super(exception); 
		this.exception = exception;
	}

	public RepositoryAccessException(String exception, DataAccessException dae) {
		super(exception, dae); 
		this.exception = exception;
	}
	
	public String getError() {
		return this.exception;
	}
}
